package com.pet.platform.service;

import com.pet.platform.common.PageResult;
import com.pet.platform.dto.ProductDTO;
import com.pet.platform.entity.Product;
import org.springframework.web.multipart.MultipartFile;

public interface ProductService {
    Product findById(Long id);
    
    PageResult<ProductDTO> findPage(Integer pageNum, Integer pageSize, String keyword, String category);
    
    void create(ProductDTO productDTO);
    
    void update(Long id, ProductDTO productDTO);
    
    void delete(Long id);
    
    String uploadImage(Long id, MultipartFile file);
    
    void updateStock(Long id, Integer stock);
    
    void updateSales(Long id, Integer increment);
} 